package com.heima.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.pojo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ljk
 * @since 2024-10-20
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from tb_user where user_name=#{loginName}")
    User selectByName(String loginName);

    IPage<UserVo> selectPageVO(IPage<UserVo> page, String userName);
}
